package ch00.ch03;

import java.util.Arrays;

/**
 * @Author lzp
 * @Date 2024-04-06
 */


@Info(genders = "男,女",hobbys = {"吃", "喝", "玩", "乐","玩游戏"})
public class Student {
    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private String gender;

    /**
     * 爱好
     */
    private String [] hobby;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Student(String name, String gender, String[] hobby) {
        this.name = name;
        this.gender = gender;
        this.hobby = hobby;
    }

    public Student() {
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }
}
